﻿<%@ Page Language="C#" MasterPageFile="~/InventoryTracker/MasterPage.master" AutoEventWireup="true" CodeFile="Materials.aspx.cs" Inherits="InventoryTracker_Materials" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="maincontent" Runat="Server">

<div id="projectreport">
        <a name="content_start0" id="content_start0"></a>
        <fieldset>
            <h2 class="none">
                Materials</h2>
            <legend>Materials</legend>
            <div class="formsection">
                Materials</div>
            
            <table style="height: 185px; width: 329px">
            <tr>
                <td>
                
                                <p style="width: 170px; height: 44px">
                        <asp:Label ID="lblMaterialsItemCode" runat="server" Text="Item Code"></asp:Label>
                        <br />
                        <asp:DropDownList ID="ddrMaterialsItemCode" runat="server" 
                                        DataSourceID="MateItemCodeSource1" DataTextField="ItemName" 
                                        DataValueField="ItemCode" Height="22px" Width="128px"></asp:DropDownList>
                                    <asp:SqlDataSource ID="MateItemCodeSource1" runat="server" 
                                        ConnectionString="<%$ ConnectionStrings:TimeTrackerConnectionString9 %>" 
                                        SelectCommand="SELECT * FROM [MaterialMaster]"></asp:SqlDataSource>
                    </p>
                    
                     
                   
                    <p style="width: 170px; height: 44px">
                        <asp:Label ID="lblMaterialName" runat="server" Text="Material Name"></asp:Label>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtMaterialName"
                        ErrorMessage="*" ></asp:RequiredFieldValidator>
                        <asp:TextBox ID="txtMaterialName" runat="server"></asp:TextBox>
                    </p>
                    
                 </td>
            <td>
                                      
                    <p style="width: 170px; height: 44px">
                        <asp:Label ID="lblMaterialalDisc" runat="server" Text="Material Discount"></asp:Label>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtMaterialDisc"
                        ErrorMessage="*" ></asp:RequiredFieldValidator>
                        <asp:TextBox ID="txtMaterialDisc" runat="server"></asp:TextBox>
                    </p>
                    
                    
            </td>
            </tr>
            </table>
            
            <asp:Label ID="lblWarn" runat="server" Text="* Required Fields" 
                ForeColor="Red"></asp:Label>
            <div class="formsection">
                <asp:Button ID="btnSubmit" runat="server"  Text="Submit" 
                    onclick="btnSubmit_Click" />
                    <asp:Label ID="lblResult" runat="server" Text=""></asp:Label>
            </div>
        </fieldset>
    </div>





</asp:Content>

